﻿using GPS.DataAccessLayer;
using PagedList;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GPS.ENTITYS
{
    public class ViewModelQLDBCI
    {
        public int? Page { get; set; }
        public string pBCI_KH_MA { get; set; }
        public string pBCI_DVGTVT_MA { get; set; }
        public string pBCI_MA { get; set; }
        public string pBCI_TRANGTHAI { get; set; }
        public string pBCI_HANGDT_MA { get; set; }
        
        public string SearchButton { get; set; }
        public string ApprovalButton { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? pBCI_TUNGAY { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? pBCI_DENNGAY { get; set; }
        public IPagedList<CrudModelDBCI> SearchResults { get; set; }
    }

    public class ViewModelQLDBCI_Log
    {
        public int? Page { get; set; }
        public string pBCI_KH_MA { get; set; }
        public string pBCI_DVGTVT_MA { get; set; }
        public string pBCI_MA { get; set; }
        public string pBCI_TRANGTHAI { get; set; }
        public string pBCI_HANGDT_MA { get; set; }

        public string SearchButton { get; set; }
        public string ApprovalButton { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? pBCI_TUNGAY { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? pBCI_DENNGAY { get; set; }
        public IPagedList<CrudModelDBCI_Log> SearchResults { get; set; }
    }

    //GiangTd3 -2017-08-26"
    public class ViewModelQLDBCI_Details
    {

        public DKH KHOAHOC { get; set; }
        public List<DHV> HOCVIENs { get; set; }
        public List<DPT_Metadata> PHUONGTIENs { get; set; }
        public List<DGV> GIANGVIENs { get; set; }
        public List<ModelDKH_LH1> LICHHOC_LTs { get; set; }
        public List<ModelDKH_LH1> LICHHOC_THs { get; set; }
    }

    public class ViewModelQLDBCI_PT_Details
    {

        public DPT PHUONGTIEN { get; set; }
        public List<DHV> HOCVIENs { get; set; }
        public List<DGV> GIANGVIENs { get; set; }
       
    }

    public class CrudModelDBCI_Log
    {
        public string STT { get; set; }
        public string BCI_MA { get; set; }
        public string BCI_DVGTVT_MA { get; set; }
        public string DVGTVT_TEN { get; set; }
        public string BCI_KH_MA { get; set; }
        public string KH_TEN { get; set; }

        public string USER_LOG { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy hh:mm:ss}", ApplyFormatInEditMode = true)]
        public DateTime? LOGTIME { get; set; }
        public string BCI_TRANGTHAI { get; set; }
        public string BCI_TRANGTHAI_OLD { get; set; }
    }
    public class CrudModelDBCI
    {
        public string STT { get; set; }
        public string BCI_MA { get; set; }
        public string BCI_DVGTVT_MA { get; set; }
        public string DVGTVT_TEN { get; set; }
        public string BCI_KH_MA { get; set; }
        public string KH_TEN { get; set; }
        public string BCI_SOBC { get; set; }
        public DateTime? BCI_NGAYBC { get; set; }
        public string BCI_SOGP { get; set; }
        public DateTime? BCI_NGAYGP { get; set; }
        public decimal? BCI_LLGP { get; set; }
        public bool Checkbox { get; set; }
        public decimal? BCI_SOHV { get; set; }
        public decimal? BCI_SOHV_TT { get; set; }
        public DateTime? BCI_NGAYKG { get; set; }
        public DateTime? BCI_NGAYBG { get; set; }
        public DateTime? BCI_NGAYTN { get; set; }
        public string BCI_NGUOITN { get; set; }
        public string BCI_MOTA { get; set; }
        public string BCI_ACTIVE { get; set; }
        public DateTime? BCI_NGAYNHAP { get; set; }
        public string BCI_NGUOINHAP { get; set; }
        public DateTime? BCI_NGAYSUA { get; set; }
        public string BCI_NGUOISUA { get; set; }
        public string BCI_TRANGTHAI { get; set; }
    }
}
